/**
 * button.css 
 * 测试小样，存放测试页面样式，主要是设置模块颜色，模块间距等
 * 
 * dependencies：
 * @require ../base.css 
 * @require ../button.css 
 * @require ../unit/icons.css
 * 
 * modified by Oscar at 2017/04/27 09:54.
 * 
 */

@import "../components/_base.scss";

/*== 公用样式 ==*/
input::-ms-clear{ display:none; }
/* 默认 */
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
textarea {
    background-color: $WhiteColor;
    border: 1px solid $BorderColor;
    border-radius: 0;
    box-shadow: none;
    color: $FontColor1;
    font-family: inherit;
    font-size: 14px;
    padding: 5px 4px 6px;
    transition-duration: 0.1s;
}
/*== fixed:修复IE8出现双滚动条 ==*/
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"] {
    overflow: hidden;
}
/* 高亮 */
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
textarea:focus {
    background-color: $WhiteColor;
    border-color: $PrimaryColor;
    box-shadow: none;
    color: $FontColor1;
    outline: 0 none;
}


.input-icon {
    position: relative;
}

span.input-icon {
    display: inline-block;
}

.form-control {
    overflow: auto;
}

/*input*/
input, button {
    border-radius: 0 !important;
}
/*清除input焦点阴影*/
.form-control {
    box-shadow: none
}

.form-control:focus {
    box-shadow: none !important
}
/*清除所有input的圆角*/
.input-group-addon {
    border-radius: 0 !important;
}
/*清除左侧图标的背景色*/
.has-feedleft .input-group-addon {
    background: none !important;
}
/*清除左侧图标的边框和阴影*/
.has-feedleft .input-group input {
    border-left: none;
    box-shadow: none !important;
}
/*改变左侧图标的内边距*/
.has-feedleft .input-group[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}
/*改变左侧图标类型默认input的边框色*/
.has-feedleft.has-default .input-group input {
    border-color: $GreyColor3
}
/*5.0主色输入框*/
.has-common .form-control {
    border-color: $PrimaryColor
}
/*xlginput*/
.input-xlg {
    height: 60px;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 60px;
}
/*mdinput*/
.input-md {
    height: 40px;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 40px;
}
/*xsminput*/
.input-xsm {
    height: 26px;
    *line-height: 24px;
}
/*边框2px*/
.input-border2 {
    border-width: 2px
}
/*去掉左边边框*/
.input-left-none {
    border-left: none
}

/*== input-icon ==*/
.input-icon > input {
    padding-left: 24px;
    padding-right: 6px;
}

.input-icon > .eyui-icon {
    bottom: 1px;
    display: inline-block;
    font-size: 16px;
    left: 3px;
    line-height: 30px;
    padding: 0 3px;
    position: absolute;
    top: 1px;
    z-index: 2;
}


.radio,
.checkbox {
    cursor: pointer;
}

input[type=checkbox].eyui.btb:hover::before,
input[type=checkbox].eyui:hover + .btb::before,
input[type=radio].eyui + .btb:hover::before,
input[type=radio].eyui:hover + .btb::before {
    border-color: $PrimaryColor;
}

label input[type=checkbox].eyui,
label input[type=radio].eyui {
    z-index: -100 !important;
    width: 1px !important;
    height: 1px !important;
    clip: rect(1px,1px,1px,1px);
    position: absolute;
}

input[type=checkbox].eyui + .btb,
input[type=radio].eyui + .btb {
    *zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '<before>\f00c</before>'+this.innerHTML);
}

input[type=checkbox].eyui + .btb:before,
input[type=checkbox].eyui + .btb before,
input[type=radio].eyui + .btb:before,
input[type=radio].eyui + .btb before {
    cursor: pointer;
    font-family: fontAwesome;
    font-weight: 400;
    font-size: 12px;
    color: $WhiteColor;
    content: "\a0";
    background-color: $WhiteColor;
    border: 1px solid #C8C8C8;
    border-radius: 0;
    display: inline-block;
    text-align: center;
    height: 14px;
    line-height: 14px;
    min-width: 14px;
    margin-right: 10px;
    position: relative;
    top: -1px;
    *top: 2px;
}

input[type=radio].eyui + .btb:before,
input[type=radio].eyui + .btb before {
    border-radius: 100%;
    font-size: 10px;
    *font-size: 12px;
    line-height: 15px;
    height: 17px;
    min-width: 17px;
}

input[type=checkbox].eyui-checkbox-lg + .btb:before,
input[type=checkbox].eyui-checkbox-lg + .btb before,
input[type=radio].eyui-checkbox-lg + .btb:before,
input[type=radio].eyui-checkbox-lg + .btb before {
    font-size: 16px;
    height: 24px;
    line-height: 21px;
    min-width: 24px;
    top: auto;
}

input[type=checkbox].eyui:checked + .btb:before,
input[type=radio].eyui:checked + .btb:before {
    display: inline-block;
    content: '\f00c';
    color: $PrimaryColor;
    background-color: $WhiteColor;
    border-color: $PrimaryColor;
}

.checked input[type=checkbox].eyui + .btb:before,
.checked input[type=checkbox].eyui + .btb before,
.checked input[type=radio].eyui + .btb:before,
.checked input[type=radio].eyui + .btb before {
    display: inline-block;
    content: '\f00c';
    color: $PrimaryColor;
    background-color: $WhiteColor;
    border-color: $PrimaryColor;
}

input[type=checkbox].eyui-checkbox-2:checked + .btb:before {
    background-color: $WhiteColor;
    border-color: $PrimaryColor;
    color: $PrimaryColor;
}

.checked input[type=checkbox].eyui-checkbox-2 + .btb:before,
.checked input[type=checkbox].eyui-checkbox-2 + .btb before {
    background-color: $WhiteColor;
    border-color: $PrimaryColor;
    color: $PrimaryColor;
}

input[type=checkbox].eyui.disabled + .btb:before,
input[type=checkbox].eyui[disabled] + .btb:before,
input[type=checkbox].eyui[disabled] + .btb before,
input[type=radio].eyui.disabled + .btb:before,
input[type=radio].eyui[disabled] + .btb:before,
input[type=radio].eyui[disabled] + .btb before {
    background-color: #DDD !important;
    border-color: $GreyColor3 !important;
    box-shadow: none !important;
    color: #BBB;
}

input[type=radio].eyui:checked + .btb:before {
    content: "\f111";
}

.checked input[type=radio].eyui + .btb:before,
.checked input[type=radio].eyui + .btb before {
    content: "\f00c";
}
/*== ./ 复选框 & 单选 ==*/









